package com.store.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_material_log")
public class MaterialLog extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 食材库存变动日志ID
     */
    @TableId(value = "material_log_id", type = IdType.ID_WORKER_STR)
    private String materialLogId;

    /**
     * 食材ID
     */
    private String materialId;

    /**
     * 食材名称
     */
    private String materialName;

    /**
     * 变动数量
     */
    private Double amount;

    /**
     * 单位
     */
    private String unit;

    /**
     * 操作类型(1:入库,2:出库,3:领用,4修正,5其他)
     */
    private String logType;

    /**
     * 操作人ID
     */
    private String createUser;

    /**
     * 操作人姓名
     */
    private String createUserName;

    /**
     * 操作时间
     */
    private Date createTime;

    /**
     * 领取人ID
     */
    private String receiveUserId;

    /**
     * 领取人姓名
     */
    private String receiveUserName;

    /**
     * 领取人姓名
     */
    private String remark;

    @TableField(exist = false)
    private Date startTime;

    @TableField(exist = false)
    private Date endTime;

}
